package com.asa.chart;

import java.util.ArrayList;
import java.util.List;

import com.asa.HanShu;
import com.asa.chart.base.Point;
import com.asa.chart.work.Algo3DVisualizer;
import com.asa.chart.work.AlgoVisualizer;
import com.asa.control_theory.A;

/**
 * 
 * 画三维的图像 原理是投影 预留900X900做操作面板
 * 
 * @author asa
 *
 */
public class ThreeDimensionalMain {

	public static void main(String[] args) throws Exception {

		final int sceneWidth = 900;
		final int sceneHeight = 900;
		int N = 10;
		List<double[][]> zhi = new ArrayList<double[][]>();

		double[][] e1 ={{3.0,4.0,5.0},{3.0,4.0,10.0}};
		double[][] e2 ={{3.0,4.0,10.0},{3.0,8.0,10.0}};
		double[][] e3 ={{3.0,8.0,5.0},{3.0,8.0,10.0}};
		double[][] e4 ={{3.0,8.0,5.0},{3.0,4.0,5.0}};

		double[][] e5 ={{6.0,4.0,5.0},{6.0,4.0,10.0}};
		double[][] e6 ={{6.0,4.0,10.0},{6.0,8.0,10.0}};
		double[][] e7 ={{6.0,8.0,5.0},{6.0,8.0,10.0}};
		double[][] e8 ={{6.0,8.0,5.0},{6.0,4.0,5.0}};
		
		double[][] e9 ={{3.0,4.0,5.0},{6.0,4.0,5.0}};
		double[][] e10 ={{3.0,8.0,5.0},{6.0,8.0,5.0}};
		double[][] e11 ={{3.0,4.0,10.0},{6.0,4.0,10.0}};
		double[][] e12 ={{3.0,8.0,10.0},{6.0,8.0,10.0}};
		
		
		zhi.add(e1);
		zhi.add(e2);
		zhi.add(e3);
		zhi.add(e4);

		zhi.add(e5);
		zhi.add(e6);
		zhi.add(e7);
		zhi.add(e8);
		
		zhi.add(e9);
		zhi.add(e10);
		zhi.add(e11);
		zhi.add(e12);
		
		Algo3DVisualizer algoVisualizer = new Algo3DVisualizer(sceneWidth, sceneHeight, N, zhi, 20, null, null, true);

	}

}
